import http from "../utils/http"
export function login_api(params) {
    return http.post('/user/login', params)
}
// 注册接口
export function regAcc_api(params) {
    return http.post('/user/register', params)
}
export function menusList_api(params) {
    return http.get('/permission/select', params)
}
// 创建用户
export function createAcc_api(params) {
    return http.post('/user/create', params)
}
//获取账号管理账号列表
export function findAllAcc_api(params) {
    return http.post('/user/findAll', params)
}



//获取角色列表
export function findAllrole_api(params) {
    return http.post('/role/findAll',params)
}
//获取角色名称列表
export function findAllRoles_api() {
    return http.get('/role/findAllRoles')
}
//登录获取对应权限菜单
export function permission_api() {
    return http.get('/permission/select')
}
//角色列表获取对应权限树
export function selectByRoleId_api(params) {
    return http.get('permission/selectByRoleId',params)
}
//角色权限增删接口
export function configRolePermission_api(params) {
    return http.post('/permission/configRolePermission',params)
}
//添加角色接口
export function caddRole_api(params) {
    return http.post('/role/add',params)
}
//修改角色接口
export function updataRole_api(params) {
    return http.post('/role/updata',params)
}
//删除角色接口
export function deleteRole_api(params) {
    return http.get('/role/delete',params)
}



//账号列表禁用账号接口
export function changeStatus_api(params) {
    return http.post('user/changeStatus',params)
}
//账号列表类型分配
export function findAllOtherRoles_api() {
    return http.get('role/findAllOtherRoles')
}
//账号列添加角色
export function configUser_api(params) {
    return http.post('reluser/configUser',params)
}
//查询当前行又哪些角色
export function findUserRole_api(params) {
    return http.post('reluser/findUserRole',params)
}


//获取过滤后的角色权限树
export function userPermission_api(params) {
    return http.post('/user/userPermission',params)
}